package cc.rico.algorithm;

/**
 * @Author: Dell
 * @Date: 2018/12/6
 * @Description:
 */
public class HeapNode {
    private int value;

    private HeapNode parent;
    private HeapNode left;
    private HeapNode right;

    public HeapNode() {
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public HeapNode getParent() {
        return parent;
    }

    public void setParent(HeapNode parent) {
        this.parent = parent;
    }

    public HeapNode getLeft() {
        return left;
    }

    public void setLeft(HeapNode left) {
        this.left = left;
    }

    public HeapNode getRight() {
        return right;
    }

    public void setRight(HeapNode right) {
        this.right = right;
    }

    @Override
    public String toString() {
        return "HeapNode{" +
                "value=" + value +
                ", parent=" + parent +
                ", left=" + left +
                ", right=" + right +
                '}';
    }
}
